home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / xlib03.zip / XTEXT.H < prev    next >
Text File  |  1993-04-05  |  3KB  |  82 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XTEXT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ; ****** Aeronautical Research Laboratory              ****************
  11. ; ****** Defence Science and Technology Organisation   ****************
  12. ; ****** Australia                                     ****************
  13. ;
  14. ; egg@dstos3.dsto.gov.au
  15. ; teg@bart.dsto.gov.au
  16. ;
  17. ;  Terminology & notes:
  18. ;         VRAM ==   Video RAM
  19. ;         SRAM ==   System RAM
  20. ;         X coordinates are in pixels unless explicitly stated
  21. ;
  22. ;-----------------------------------------------------------------------*/
  23.  
  24. #ifndef _XTEXT_H_
  25. #define _XTEXT_H_
  26.  
  27.  
  28. #define FONT_8x8
  29. #define FONT_8x15
  30. #define FONT_USER
  31.  
  32. /* FUNCTIONS =========================================================== */
  33.  
  34. extern WORD x_text_init(void);            /* Initialize text functionns  */
  35.  
  36. extern void x_set_font(
  37.         WORD FontId);             /* Set the font style          */
  38.  
  39. extern void x_register_userfont(          /* register a user defined font */
  40.         char far *UserFontPtr);
  41.  
  42. extern void x_put_char(                   /* Draw a text character using  */
  43.                 char ch,                  /* the currently active font    */
  44.                 WORD X,
  45.                 WORD Y,
  46.                 WORD PgOffs,
  47.                 WORD Color);
  48.  
  49. /* the folowing function is from xprintf.c but is included due to its     */
  50. /* close relationship with this module                                    */
  51.  
  52. void x_printf(                          /* formatted text output */
  53.            WORD x,
  54.            WORD y,
  55.            WORD ScrnOffs,
  56.            WORD color,
  57.            char *ln,...);
  58.  
  59. void x_bgprintf(                          /* formatted text output */
  60.            WORD x,
  61.            WORD y,
  62.            WORD ScrnOffs,
  63.            WORD fgcolor,
  64.            WORD bgcolor,
  65.            char *ln,...);
  66.  
  67.  
  68. /* VARIABLES =========================================================== */
  69.  
  70. extern BYTE CharHeight;     /* Char height of currently active font        */
  71. extern BYTE CharWidth;      /* Char width of currently active font         */
  72. extern BYTE FirstChar;      /* First char in the curr. active font         */
  73.  
  74. extern BYTE UserCharHeight; /* Char height of currentle regist'd user font */
  75. extern BYTE UserCharWidth;  /* Char height of currentle regist'd user font */
  76. extern BYTE UserFirstChar;  /* First char of the curr. regist'd usera font */
  77.  
  78.  
  79. #endif
  80.  
  81.  
  82.